package tech.yangzhijie.basic.java06.test0501;

public class Rectangle extends MyGraphic {

    private Integer length;
    private Integer wide;

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Integer getWide() {
        return wide;
    }

    public void setWide(Integer wide) {
        this.wide = wide;
    }

    @Override
    public double area() {
        return length*wide;
    }
}
